<html>
<head><meta charset="utf-8"><title>Can&#x27;t get x.py to run my test file · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Can&#x27;t.20get.20x.2Epy.20to.20run.20my.20test.20file.html">Can&#x27;t get x.py to run my test file</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="217544440"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Can%27t%20get%20x.py%20to%20run%20my%20test%20file/near/217544440" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> isHavvy <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Can&#x27;t.20get.20x.2Epy.20to.20run.20my.20test.20file.html#217544440">(Nov 22 2020 at 10:13)</a>:</h4>
<p>I've created a run-pass test file <code>src/test/ui/expr/compound-assignment/eval-order.rs</code>, and I'm trying to get the compiler to actually test it. I've tried the following, but it says it's running 0 tests:</p>
<div class="codehilite"><pre><span></span><code>D:\Source\rust(test-eval-order-compound-assign)&gt; with-env [COMPILETEST_FORCE_STAGE0 1] { python x.py test src/test/ui/expr/compound-assignment --stage=0 }
Updating only changed submodules
Submodules updated in 0.18 seconds
    Finished dev [unoptimized + debuginfo] target(s) in 0.31s
Building stage0 std artifacts (x86_64-pc-windows-msvc -&gt; x86_64-pc-windows-msvc)
    Finished release [optimized] target(s) in 0.41s
Copying stage0 std from stage0 (x86_64-pc-windows-msvc -&gt; x86_64-pc-windows-msvc / x86_64-pc-windows-msvc)
Building stage0 tool compiletest (x86_64-pc-windows-msvc)
    Finished release [optimized] target(s) in 0.42s
Check compiletest suite=ui mode=ui (x86_64-pc-windows-msvc -&gt; x86_64-pc-windows-msvc)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 11130 filtered out

        finished in 1.573 seconds
Build completed successfully in 0:00:03
</code></pre></div>
<p>How do I get it to run my test file?</p>



<a name="217545554"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Can%27t%20get%20x.py%20to%20run%20my%20test%20file/near/217545554" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> isHavvy <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Can&#x27;t.20get.20x.2Epy.20to.20run.20my.20test.20file.html#217545554">(Nov 22 2020 at 10:45)</a>:</h4>
<p>Solved it...</p>
<p><code>python x.py test src/test/ui/expr\compound-assignment\eval-order.rs</code></p>
<p>While you can use either <code>\</code> or <code>/</code> up to where I'm using <code>/</code>, you have to use the platform directory character where I'm using <code>\</code>.</p>



<a name="217546384"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Can%27t%20get%20x.py%20to%20run%20my%20test%20file/near/217546384" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> isHavvy <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Can&#x27;t.20get.20x.2Epy.20to.20run.20my.20test.20file.html#217546384">(Nov 22 2020 at 11:09)</a>:</h4>
<p>I feel like it shouldn't have to matter whether i use <code>/</code> or <code>\</code>. It should Just Work(TM). Should I file an issue?</p>



<a name="217547005"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Can%27t%20get%20x.py%20to%20run%20my%20test%20file/near/217547005" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Vadim Petrochenkov <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Can&#x27;t.20get.20x.2Epy.20to.20run.20my.20test.20file.html#217547005">(Nov 22 2020 at 11:29)</a>:</h4>
<p><code>x.py test --test-args eval-order</code></p>



<a name="217547010"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Can%27t%20get%20x.py%20to%20run%20my%20test%20file/near/217547010" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Vadim Petrochenkov <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Can&#x27;t.20get.20x.2Epy.20to.20run.20my.20test.20file.html#217547010">(Nov 22 2020 at 11:29)</a>:</h4>
<p>(Or any other matching regex instead of <code>eval-order</code>.)</p>



<a name="217547073"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Can%27t%20get%20x.py%20to%20run%20my%20test%20file/near/217547073" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> isHavvy <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Can&#x27;t.20get.20x.2Epy.20to.20run.20my.20test.20file.html#217547073">(Nov 22 2020 at 11:31)</a>:</h4>
<p>That seems to run tidy first which fails for me because I have CR tokens locally....</p>



<a name="217548118"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Can%27t%20get%20x.py%20to%20run%20my%20test%20file/near/217548118" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Can&#x27;t.20get.20x.2Epy.20to.20run.20my.20test.20file.html#217548118">(Nov 22 2020 at 12:02)</a>:</h4>
<p>if you specify soemthing like <code>src/test/ui</code> then tidy does not run, so <code>./x.py test src/test/ui --test-args eval-order</code></p>



<a name="217548956"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Can%27t%20get%20x.py%20to%20run%20my%20test%20file/near/217548956" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Can&#x27;t.20get.20x.2Epy.20to.20run.20my.20test.20file.html#217548956">(Nov 22 2020 at 12:25)</a>:</h4>
<p>An issue would be good.</p>



<a name="217584973"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Can%27t%20get%20x.py%20to%20run%20my%20test%20file/near/217584973" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> isHavvy <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Can&#x27;t.20get.20x.2Epy.20to.20run.20my.20test.20file.html#217584973">(Nov 23 2020 at 03:08)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust/issues/79334">https://github.com/rust-lang/rust/issues/79334</a> filed</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>